<?php
$this->beginWidget('bootstrap.widgets.TbBox', array(
	'title' => array('用户列表'),
	'headerIcon' => 'icon-list-alt',
));
$this->widget('bootstrap.widgets.TbExtendedGridView', array(
	'type' => 'striped bordered condensed',
	'dataProvider' => $gridDataProvider,
	'columns' => array(
		array(
			'class' => 'zii.widgets.grid.CLinkColumn',
			'labelExpression' => '$data["username"]',
			'urlExpression' => 'array("user/update","id"=>$data["id"])',
			'header' => '用户名',
			'htmlOptions' => array('nowrap' => 'nowrap'),
		),
		'email',
		array(
			'header' => '操作',
			'class' => 'bootstrap.widgets.TbButtonColumn',
			'template' => '{update} {delete}',
		),
	),
));
$this->widget('bootstrap.widgets.TbButton', array(
	'type' => 'primary',
	'label' => '添加用户',
	'url' => array('create')
));
$this->endWidget();
